package cn.tedu.config;

import cn.tedu.service.IMessageHandler;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.Map;

/**
 * 微信配置类
 * @author Kiven
 */
//@Configuration
public class WxSelfConfig {

    private static  Map<String, IMessageHandler> map = new HashMap<>();
    @Autowired
    public void setMap(Map<String, IMessageHandler> map){
        WxSelfConfig.map=map;
        System.out.println(map);
    }
    public static IMessageHandler getMessageHandler(String key){
        return map.get(key);
    }
}
